package com.tedu.springbootdemo1.controller;

import com.tedu.springbootdemo1.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：毕龙
 * Date: 2024/7/1 14:54
 * @ResponseBody 响应的数据类型会以JSON字符串响应
 * {
 *     id:1，
 *     name:"张三"
 * }
 * @Controller 将该类交由给SpringBoot容器管理
 */
@RestController
public class HelloSpringBoot {



    /*
    * @RequestMapping 请求映射的配置路径
    * */
    @RequestMapping("/hello")
    public String hello(){
        return "Hello Spring Boot!!!";
    }


}
